﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rmlife.Model
{
    public enum PrivateMessageObject
    {
        /// <summary>
        /// 单位分组
        /// </summary>
        Group = 1,
        /// <summary>
        /// 单位
        /// </summary>
        Company = 2
    }
    /// <summary>
    /// 单位消息表
    /// </summary>
    [Serializable]
    public class PrivateMessageInfo
    {
        public PrivateMessageInfo()
        {
            dtPostDate = DateTime.Parse("1900-1-1 0:00:00");
        }
        /// <summary>
        /// 索引ID
        /// </summary>
        public int iPMID { get; set; }
        /// <summary>
        /// 文件夹：1，代表管理中心发出的；0，代表单位发来的
        /// </summary>
        public int iFolder { get; set; }
        /// <summary>
        /// 发送者名称(单位名称或分组名称)
        /// </summary>
        public string sFrom { get; set; }
        /// <summary>
        /// 单位编号
        /// </summary>
        public string sCompanyID { get; set; }
        /// <summary>
        /// 单位分组编号
        /// </summary>
        public string sGroupID { get; set; }
        /// <summary>
        /// 状态（0未读、1已读）
        /// </summary>
        public int iStatus { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime dtPostDate { get; set; }
         /// <summary>
        /// 消息标题
        /// </summary>
        public string sSubject { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string sMessage { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string sIP { get; set; }
        /// <summary>
        /// 父IP
        /// </summary>
        public int iParentID { get; set; }
    }
}
